﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TerryDong.Core;
namespace TerryDong.Bll.Models.xml
{
    public class MailSetting:SettingBase
    {
        static MailSetting()
        {
            SettingBase.SettingFile("demoMessages.xml");
            int zero = 0;
            int i = 5 / zero;
            MailBody= Setting.GetValue("MailBody");
        }
        public static string MailBody { get; private set; }
    }

    public class UrlSetting : SettingBase
    {
        static UrlSetting()
        {
            SettingBase.SettingFile("UrlMessages.dll");
            MailBody = Setting.GetValue("MailBody");
        }
        public static string MailBody { get;private set; }

        public static void setMailBody(string value)
        {
            Setting.SetValue("MailBody", value);
        }
    }

    public class ErrorSetting : SettingBase
    {
        static ErrorSetting()
        {
            SettingFile("ErrorSetting.dll");
            Message = Setting.GetText("MailBody");
            Xml = Setting.ConfigXml.ToString();
        }

        public static string Message { get; private set; }

        public static string Xml { get; private set; }
    }
}
